/**
 * Created by minigci.he on 16/9/23.
 */
console.log('-------------------')
console.log('test4')

var value1 = [1,5,10,15].findIndex(function(value, index, arr){
    return value > 9
})
console.log(value1) // 2

var value2 = [NaN].findIndex( y => Object.is(NaN, y))
console.log(value2) // 0